from django.conf.urls import url
from web.views import index, about
from web.views import category
from web.views import tag
from web.views import file

urlpatterns = [
    url(r'^$', index.IndexView.as_view(), name='index'),

    # 文章分类
    url(r'^category/$', category.CategoryView.as_view(), name='category'),
    # 文章标签
    url(r'^tag/$', tag.TagView.as_view(), name='tag'),
    # 文章归档
    url(r'^file/$', file.FileView.as_view(), name='file'),
    # 关于我
    url(r'^about/$', about.AboutView.as_view(), name='about'),
    # 文章详情
    url(r'^articles/detail/(?P<aid>\d+)/$', index.ArticleDetail.as_view(), name='article_detail'),
    url(r'^test/$', index.Test.as_view(), name='test'),
]
